Here is an important example.
-- in view_start.html ----------------------------
<form action='controller.php'>
<input type='hidden' name='page' value='Start'> <br>
<input type='???' name='command' value='SignIn'> <br>
Username: <br> <input type='text' name='Username'> <br>
Password:<br> <input type='???' name='Password'> <br>
<input type='submit'>
</form>
-- in view_start.html ----------------------------
<form action='controller.php'>
<input type='???' name='page' value='Start'> <br>
<input type='???' name='command' value='ForgotPassword'> <br>
Username: <br> <input ???='???' ???='Username'> <br>
<input type='submit'>
</form>
-- in controller.php ----------------------------
<?php
$command = $_GET['command']; // It is in the code, but hidden from the user.
switch($command) {
case 'SignIn':
...
exit(); // or break when there is something more to do after switch
case 'Join':
...
exit();
case 'ForgotPassword':
...
exit();
default:
...
exit();
}
?>